Fixes a vtpm timeout problem for slow machines.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 22 Sep 2005 14:19:30 +0000 (15:19 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 22 Sep 2005 14:19:30 +0000 (15:19 +0100)
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
linux-2.6-xen-sparse/drivers/xen/tpmback/tpmback.c

index 593e7372aba0a503c8060c1571c98a5f6b4bd83b..17726f8989925d73cdc331035c2ce47d3dcc5818 100644 (file)
@@ -566,7 +566,7 @@ vtpm_op_read(struct file *file,
                                 * the more time we give the TPM to process the request.
                                 */
                                mod_timer(&pak->processing_timer,
-                                         jiffies + (num_frontends * 10 * HZ));
+                                         jiffies + (num_frontends * 60 * HZ));
                                dataex.copied_so_far = 0;
                        }
                }
@@ -850,7 +850,7 @@ static int vtpm_queue_packet(struct packet *pak)
                write_lock_irqsave(&dataex.pak_lock, flags);
                list_add_tail(&pak->next, &dataex.pending_pak);
                /* give the TPM some time to pick up the request */
-               mod_timer(&pak->processing_timer, jiffies + (10 * HZ));
+               mod_timer(&pak->processing_timer, jiffies + (30 * HZ));
                write_unlock_irqrestore(&dataex.pak_lock,
                                        flags);